var vm = new Vue({
	el:'#app',
	data:{
		account:"",
		prop: ""
},
	 components: {
        "header-com" : headerCom,
        "count-com" : countCom,
		"popup-com" : popupCom
	},
    methods:{
    	modify:function(){
    		this.account = ""
    	},
    	cancel:function(){
    		window.location.href = "/business";
    	},
    	Exit:function(){
			window.location.href="/tokens/logout"
		},
		Submission:function(){
    		const account = Qs.stringify({
				"tocardNo": this.account
			})
			var reg = /^\d{19}$/g;
            if(this.account == ""){
				this.prop = "账号为空！请输入账号";
                return;
            }else if(!reg.test(this.account)) {
				this.prop = "账号格式错误！请输入19位数字";
				this.account = "";
            }else{
	            axios.post("/business/transfer/checkToAccount",account)
	            .then((res)=> {
	              	var code = res.data.code;
                    var describe = res.data.describe;
                    switch (code){
                        case 0:
                        window.location.href = "./transfer/amount";
                        break;
                        case 111:
						this.prop = describe;
						break;
                        case 112:
						this.prop = describe;
						break;
                        case 611:
						this.prop = describe;
						break;
						case 612://冻结code
						this.prop = describe;
						break;
                    }
	            })
	            .catch(function(error) {
	                alert(error);
	            })
            }
    	
    	}
    }
})